package com.itqf.factory;

import com.itqf.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * projectName: springframeworkgp8
 *
 * @author: 赵伟风
 * time: 2021/8/4 14:50
 * description:
 */
public class UseAop {

    public static void main(String[] args) {

        ApplicationContext applicationContext =
                new ClassPathXmlApplicationContext("spring-service.xml");

        UserService bean = applicationContext.getBean(UserService.class);

        bean.register();


    }
}
